<!DOCTYPE html>
<html lang="en">
  <head>
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<title>ISit账户</title> 
</head>

<body>
<layout name="Auth:header" />
<if condition="$role eq '访客'">
	<div class="container-fluid">
    <div class="row-fluid" style="margin-top:5%;">
		<div class="span4" style=" margin-left:120px;">		
			<h1 class="redtext">账户</h1>
			<p>登录	iSIT 帐户后，即可享受 iSIT 提供的更多服务。</p>
			<P>	在右侧登录</p>
		
			<img src="../Public/image/img_bulletin.jpg" style="width:45%; margin-top:12%" />guide<br />
			<img src="../Public/image/img_news.jpg" style="width:45%;margin-top:12%"  />最新时事<br />
			<img src="../Public/image/img_question.jpg" style="width:45%;margin-top:12%"  />有问必答
			
		</div>
		
    <div class="span4 hero-unit" style="margin-left:5%">
			    <load href="__JS__/jQuery/jquery.js" />
 <load href="__JS__/jQuery/jquery.form.js" />
<script type="text/JavaScript">
$(function(){
    $('#form1').ajaxForm({
        //beforeSubmit:  function(){alert("before");},  // pre-submit callback
        success:       complete,  // post-submit callback
        error:function(){alert("error");},
        dataType: 'json'
    });
    
    function complete(data){
        if (data.status==1)
        {
        	if(data.data!=0)
        		window.location=data.data;
        	else
        		window.location=window.location.href;
        }else{
            $('#result').html(data.info).show();
        }
    }
});
</script>
			<form id='form1' method="post" action="__APP__/Auth/auth" class="form-inline">
                <div id="result" class="alert alert-error">
                	
                    请输入<strong>用户名</strong>和<strong>密码</strong>
                    
                </div>
			<input type="text" class="input-xlarge" name="no" maxlength="20" placeholder="用户名" /><br /> <br />
			<input type="password" class="input-xlarge" name="password" maxlength="20" placeholder="密码" /><br /><br/>
			记住我<input type="checkbox" name=remember class="rememberme"><br/><br/><br/><br/>
			<input type=hidden value={$url} name=url>
            <p class="pull-right">
			<input type="submit" value="登陆" class="btn btn-info" style=" width:100px;"/>
            </p>
			</form>
	</div>
		
	</div>
<else/>	
	<div  style="margin-top:10%; margin-left:20%; width:60%; text-align:center" class="hero-unit">
	<h3>已登录：{$role},{$no},{$name} <a href="__APP__/Auth/logout" class="btn btn-warning">注销</a></h3><hr style="width:100%">
	<h4><a href="__APP__/index/index" class="btn btn-primary">访问主页</a>&nbsp;&nbsp;<a href="javascript:history.back()" class="btn btn-info">返回登陆前界面</a></h4>
	</div>
    
   </div>
</div>
</if>
<!--<layout name="Auth:footer" />-->
<script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>
